/*
 *  Copyright 2004 Blandware (http://www.blandware.com)
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
package com.blandware.atleap.webapp.util.core;

/**
 * <p>Constants used throughout web application</p>
 * <p><a href="WebappConstants.java.html"><i>View Source</i></a></p>
 *
 * @author Sergey Zubtsovskiy <a href="mailto:sergey.zubtsovskiy@blandware.com">&lt;sergey.zubtsovskiy@blandware.com&gt;</a>
 * @version $Revision: 1.73 $ $Date: 2008/06/24 06:39:08 $
 */
public class WebappConstants {

	/**
	 * Maximum length of value of application resource's value
	 */
	public static final int HTML_TEXT_FIELD_MAX_LENGTH = 252;
	/**
	 * Context key under which root section of site map is saved
	 */
	public static final String SITE_MAP_KEY = "com.blandware.atleap.SITE_MAP";

	/**
	 * Context key under which <code>Boolean.TRUE</code> is saved if site edit mode is enabled.
	 * If attribute under this key is null, it means that edit mode is disabled
	 */
	public static final String SITE_EDIT_MODE_ENABLED_KEY = "com.blandware.atleap.SITE_EDIT_MODE_ENABLED";

	/**
	 * Context key under which URL to redirect to is saved
	 */
	public static final String REDIRECT_URL_KEY = "com.blandware.atleap.REDIRECT_URL";

	/**
	 * Context key under which current path is stored (e.g. in list of pages)
	 */
	public static final String CURRENT_PATH_KEY = "com.blandware.atleap.CURRENT_PATH";

	/**
	 * Context key under which current path for the list of content resources is stored
	 */
	public static final String CONTENT_RESOURCES_CURRENT_PATH_KEY = "com.blandware.atleap.CONTENT_RESOURCES_CURRENT_PATH";

	/**
	 * Context key under which current path on the list of content pages is stored
	 */
	public static final String CONTENT_PAGES_CURRENT_PATH_KEY = "com.blandware.atleap.CONTENT_PAGES_CURRENT_PATH";

	/**
	 * Context key under which current path on the list of action pages is stored
	 */
	public static final String ACTION_PAGES_CURRENT_PATH_KEY = "com.blandware.atleap.ACTION_PAGES_CURRENT_PATH";

	/**
	 * Context key under which current path on the list of application resources is stored
	 */
	public static final String APPLICATION_RESOURCES_CURRENT_PATH_KEY = "com.blandware.atleap.APPLICATION_RESOURCES_CURRENT_PATH";

	/**
	 * Context key under which current path on the list of actions is stored
	 */
	public static final String ACTIONS_LIST_CURRENT_PATH_KEY = "com.blandware.atleap.ACTIONS_LIST_CURRENT_PATH";

	/**
	 * Context key under which current path in the list of files is saved
	 */
	public static final String BROWSER_FILES_CURRENT_PATH_KEY = "com.blandware.atleap.browser.FILES_CURRENT_PATH";

	/**
	 * Context key under which current path in the list of images is saved
	 */
	public static final String BROWSER_IMAGES_CURRENT_PATH_KEY = "com.blandware.atleap.browser.IMAGES_CURRENT_PATH";

	/**
	 * Context key, under which locale suffix, used in browser is saved
	 */
	public static final String BROWSER_LOCALE_SUFFIX_KEY = "com.blandware.atleap.browser.BROWSER_LOCALE_SUFFIX";

	/**
	 * Context key under which current path in the list of documents is saved
	 */
	public static final String BROWSER_DOCUMENTS_CURRENT_PATH_KEY = "com.blandware.atleap.browser.DOCUMENTS_CURRENT_PATH";

    /**
     * Browser mode in which links to all objects are shown
     */
    public static final String BROWSER_MODE_LINKS = "links";

    /**
     * Browser mode in which links to pages are shown
     */
    public static final String BROWSER_MODE_PAGE_LINKS = "pageLinks";

    /**
     * Browser mode in which links to content resources are shown
     */
    public static final String BROWSER_MODE_RESOURCE_LINKS = "resourceLinks";

    /**
     * Browser mode in which images are shown
     */
    public static final String BROWSER_MODE_IMAGES = "images";

    /**
     * Browser mode in which files are shown
     */
    public static final String BROWSER_MODE_FILES = "files";

    /**
     * Context key under which browser mode is saved
     */
    public static final String BROWSER_MODE_KEY = "com.blandware.atleap.browser.BROWSER_MODE";

    /**
     * Name of menu for 'links' mode of browser
     */
    public static final String BROWSER_LINKS_MENU_NAME = "LinksBrowserMenu";

    /**
     * Name of menu for 'pageLinks' mode of browser
     */
    public static final String BROWSER_PAGE_LINKS_MENU_NAME = "PageLinksBrowserMenu";

    /**
     * Name of menu for 'resourceLinks' mode of browser
     */
    public static final String BROWSER_RESOURCE_LINKS_MENU_NAME = "ResourceLinksBrowserMenu";

    /**
     * Name of menu for 'images' mode of browser
     */
    public static final String BROWSER_IMAGES_MENU_NAME = "ImagesBrowserMenu";

    /**
     * Name of menu for 'files' mode of browser
     */
    public static final String BROWSER_FILES_MENU_NAME = "FilesBrowserMenu";

	/**
	 * Context key under which current path on the list of definitions is stored
	 */
	public static final String DEFINITIONS_LIST_CURRENT_PATH_KEY = "com.blandware.atleap.DEFINITIONS_LIST_CURRENT_PATH";

	/**
	 * Context key under which value of content field is saved
	 */
	public static final String CONTENT_FIELD_VALUE_KEY = "com.blandware.atleap.CONTENT_FIELD_VALUE";

	/**
	 * Context key under which merged values of content field values is saved
	 */
	public static final String CONTENT_FIELD_VALUES_MERGED_KEY = "com.blandware.atleap.CONTENT_FIELD_VALUES_MERGED";

	/**
	 * Session attribute name to store FormFile object
	 */
	public static final String UPLOAD_CONTENT_RESOURCE_FORM_KEY = "com.blandware.atleap.UPLOAD_CONTENT_RESOURCE_FORM";

	/**
	 * Context key under which path to which content resource is added stored
	 */
	public static final String CONTENT_RESOURCES_FOLDER_KEY = "com.blandware.atleap.CONTENT_RESOURCES_FOLDER";

	/**
	 * Context key under which content resource required type is stored
	 */
	public static final String CONTENT_RESOURCE_TYPE_KEY = "com.blandware.atleap.CONTENT_RESOURCE_TYPE";

	/**
	 * Context key under which flag is stored that says that after content
     * resource has been created window needs to be closed
	 */
	public static final String CONTENT_RESOURCE_CLOSE_WINDOW_AFTER_CREATED_KEY = "com.blandware.atleap.CONTENT_RESOURCE_CLOSE_WINDOW_AFTER_CREATED";

    /**
	 * Name of grid that displays list of Struts actions
	 */
	public static final String ACTIONS_GRID = "actionsGrid";

	/**
	 * Name of grid that displays list of Tiles definitions
	 */
	public static final String DEFINITIONS_GRID = "definitionsGrid";

	/**
	 * Name of grid that displays list of search result hits
	 */
	public static final String HITS_GRID = "hitsGrid";

	/**
	 * Name of grid that displays list of content pages
	 */
	public static final String CONTENT_PAGES_GRID = "contentPagesGrid";

	/**
	 * Name of grid that displays list of action pages
	 */
	public static final String ACTION_PAGES_GRID = "actionPagesGrid";

	/**
	 * Name of grid that displays list of application resources
	 */
	public static final String APPLICATION_RESOURCES_GRID = "applicationResourcesGrid";

	/**
	 * Name of grid that displays list of content resources
	 */
	public static final String CONTENT_RESOURCES_GRID = "contentResourcesGrid";

	/**
	 * Name of grid that displays list of content locales
	 */
	public static final String CONTENT_LOCALES_GRID = "contentLocalesGrid";

	/**
	 * Name of grid that displays list of images
	 */
	public static final String BROWSE_IMAGES_GRID = "browseImagesGrid";

	/**
	 * Name of grid that displays list of documents
	 */
	public static final String BROWSE_DOCUMENTS_GRID = "browseDocumentsGrid";

	/**
	 * Name of grid that displays list of files
	 */
	public static final String BROWSE_FILES_GRID = "browseFilesGrid";

	/**
	 * Name of grid that displays list of action pages
	 */
	public static final String BROWSER_ACTION_PAGES_GRID = "browseAPGrid";

	/**
	 * Name of grid that displays list of content pages
	 */
	public static final String BROWSER_CONTENT_PAGES_GRID = "browseCPGrid";

	/**
	 * Name of grid that displays list of content pages
	 */
	public static final String BROWSER_LINKABLE_ITEMS_GRID = "browseLIGrid";

    /**
	 * Name of iterator in images grid that displays images
	 */
	public static final String BROWSER_IMAGES_ITERATOR = "imagesIterator";

	/**
	 * Context key, under which parent ID is stored
	 */
	public static final String MENU_ITEM_PARENT_ID_KEY = "com.blandware.atleap.MENU_ITEM_PARENT_ID";

	/**
	 * Context kye under which menu item's owner ID is stored
	 */
	public static final String MENU_ITEM_OWNER_ID_KEY = "com.blandware.atleap.MENU_ITEM_OWNER_ID";

	/**
	 * Context key, under which list of parents is stored
	 */
	public static final String MENU_ITEM_PARENTS_LIST_KEY = "com.blandware.atleap.MENU_ITEM_PARENTS_LIST";

	/**
	 * Context key under which layout definition is stored
	 */
	public static final String LAYOUT_DEFINITION_KEY = "com.blandware.atleap.LAYOUT_DEFINITION";

	/**
	 * Context key under which owner ID is saved
	 */
	public static final String OWNER_ID_KEY = "com.blandware.atleap.OWNER_ID";

	/**
	 * Context key under which info about owner is saved
	 */
	public static final String OWNER_INFO_KEY = "com.blandware.atleap.OWNER_INFO";

	/**
	 * Context key under which content field ID is saved
	 */
	public static final String CONTENT_FIELD_ID_KEY = "com.blandware.atleap.CONTENT_FIELD_ID";

	/**
	 * Context key under which content field is saved
	 */
	public static final String CONTENT_FIELD_KEY = "com.blandware.atleap.CONTENT_FIELD";

	/**
	 * Context key under which sequence ID is saved
	 */
	public static final String SEQUENCE_ID_KEY = "com.blandware.atleap.SEQUENCE_ID";

	/**
	 * Context key under which sequence is saved
	 */
	public static final String SEQUENCE_KEY = "com.blandware.atleap.SEQUENCE";

    /**
	 * Context key under which content page ID is saved
	 */
	public static final String CONTENT_PAGE_ID_KEY = "com.blandware.atleap.CONTENT_PAGE_ID";

	/**
	 * Context key under which action page ID is saved
	 */
	public static final String ACTION_PAGE_ID_KEY = "com.blandware.atleap.ACTION_PAGE_ID";

	/**
	 * Context key under which key of application resource is saved
	 */
	public static final String APPLICATION_RESOURCE_KEY_KEY = "com.blandware.atleap.APPLICATION_RESOURCE_KEY";


	/**
	 * Context key under which layout ID is saved
	 */
	public static final String LAYOUT_ID_KEY = "com.blandware.atleap.LAYOUT_PAGE_ID";

	/**
	 * Context key under which content resource ID is saved
	 */
	public static final String CONTENT_RESOURCE_ID_KEY = "com.blandware.atleap.CONTENT_RESOURCE_ID";

	/**
	 * Context key under which user name is saved
	 */
	public static final String USER_NAME_KEY = "com.blandware.atleap.USER_NAME";

	/**
	 * Context key under which role name is saved
	 */
	public static final String ROLE_NAME_KEY = "com.blandware.atleap.ROLE_NAME";

	/**
	 * Context key under which group name is saved
	 */
	public static final String GROUP_NAME_KEY = "com.blandware.atleap.GROUP_NAME";

	/**
	 * Context key under which menu item ID is saved
	 */
	public static final String MENU_ITEM_ID_KEY = "com.blandware.atleap.MENU_ITEM_ID";

	/**
	 * Context key under which content locale identifier is stored
	 */
	public static final String CONTENT_LOCALE_IDENTIFIER_KEY = "com.blandware.atleap.CONTENT_LOCALE_IDENTIFIER";

	/**
	 * Context key under which ID of some HTML input tag is stored
	 */
	public static final String HTML_INPUT_TAG_ID_KEY = "com.blandware.atleap.HTML_INPUT_TAG_ID";

	/**
	 * Context key under which ID of mail template is stored
	 */
	public static final String MAIL_TEMPLATE_ID_KEY = "com.blandware.atleap.MAIL_TEMPLATE_ID";

	/**
	 * Context key under which merged body of mail template is stored
	 */
	public static final String MAIL_TEMPLATE_MERGED_BODY_KEY = "com.blandware.atleap.MAIL_TEMPLATE_MERGED_BODY";

	/**
	 * Context key under which new mime type of document are stored
	 */
	public static final String CONTENT_DOCUMENT_NEW_MIMETYPE_KEY = "com.blandware.atleap.CONTENT_DOCUMENT_NEW_MIMETYPE_KEY";

	/**
	 * Context key under which new size of document are stored
	 */
	public static final String CONTENT_DOCUMENT_NEW_SIZE_KEY = "com.blandware.atleap.CONTENT_DOCUMENT_NEW_SIZE_KEY";

	/**
	 * Context key under which new file name of document are stored
	 */
	public static final String CONTENT_DOCUMENT_NEW_FILENAME_KEY = "com.blandware.atleap.CONTENT_DOCUMENT_NEW_FILENAME_KEY";

	/**
	 * Context key under which new summary of document are stored
	 */
	public static final String CONTENT_DOCUMENT_NEW_SUMMARY_KEY = "com.blandware.atleap.CONTENT_DOCUMENT_NEW_SUMMARY_KEY";

	/**
	 * Context key under which new mime type of file are stored
	 */
	public static final String CONTENT_FILE_NEW_MIMETYPE_KEY = "com.blandware.atleap.CONTENT_FILE_NEW_MIMETYPE_KEY";

	/**
	 * Context key under which new size of file are stored
	 */
	public static final String CONTENT_FILE_NEW_SIZE_KEY = "com.blandware.atleap.CONTENT_FILE_NEW_SIZE_KEY";

	/**
	 * Context key under which new file name of file are stored
	 */
	public static final String CONTENT_FILE_NEW_FILENAME_KEY = "com.blandware.atleap.CONTENT_FILE_NEW_FILENAME_KEY";

    /**
     * Context key under which some non-null value is stored if and only if
     * some mime-type is stored in context for new file (even if this mime-type
     * is null)
     */
    public static final String CONTENT_FILE_NEW_MIMETYPE_IS_SET_KEY = "com.blandware.atleap.CONTENT_FILE_NEW_MIMETYPE_IS_SET_KEY";

	/**
	 * Context key under which new mime type of image are stored
	 */
	public static final String CONTENT_IMAGE_NEW_MIMETYPE_KEY = "com.blandware.atleap.CONTENT_IMAGE_NEW_MIMETYPE_KEY";

	/**
	 * Context key under which new size of image are stored
	 */
	public static final String CONTENT_IMAGE_NEW_SIZE_KEY = "com.blandware.atleap.CONTENT_IMAGE_NEW_SIZE_KEY";

	/**
	 * Context key under which new file name of image are stored
	 */
	public static final String CONTENT_IMAGE_NEW_FILENAME_KEY = "com.blandware.atleap.CONTENT_IMAGE_NEW_FILENAME_KEY";

	/**
	 * Context key under which new width of image are stored
	 */
	public static final String CONTENT_IMAGE_NEW_WIDTH_KEY = "com.blandware.atleap.CONTENT_IMAGE_NEW_WIDTH_KEY";

	/**
	 * Context key under which new height of image are stored
	 */
	public static final String CONTENT_IMAGE_NEW_HEIGHT_KEY = "com.blandware.atleap.CONTENT_IMAGE_NEW_HEIGHT_KEY";
	/**
	 * ============================ C O L L E C T I O N S =========================
	 */

	/**
	 * Collection of content locales presented in application
	 */
	public static final String CONTENT_LOCALES_COLLECTION_KEY = "com.blandware.atleap.CONTENT_LOCALES_COLLECTION";

	/**
	 * Collection of languages
	 */
	public static final String LANGUAGES_COLLECTION_KEY = "com.blandware.atleap.LANGUAGES_COLLECTION";

	/**
	 * Collection of links to for switching locales
	 */
	public static final String SWITCH_LOCALE_LINKS_COLLECTION_KEY = "com.blandware.atleap.SWITCH_LOCALE_LINKS_COLLECTION";

	/**
	 * Collection of layouts presented in application
	 */
	public static final String LAYOUT_COLLECTION_KEY = "com.blandware.atleap.LAYOUT_COLLECTION";

	/**
	 * Collection of Struts Actions
	 */
	public static final String ACTIONS_LIST_COLLECTION_KEY = "com.blandware.atleap.ACTION_COLLECTION";

	/**
	 * Collection of Tiles definitions
	 */
	public static final String DEFINITIONS_LIST_COLLECTION_KEY = "com.blandware.atleap.DEFINITION_COLLECTION";

	/**
	 * Collection of search result hits
	 */
	public static final String HIT_COLLECTION_KEY = "com.blandware.atleap.HIT_COLLECTION";

	/**
	 * Collection of content pages
	 */
	public static final String CONTENT_PAGES_COLLECTION_KEY = "com.blandware.atleap.CONTENT_PAGES_COLLECTION";

	/**
	 * Collection of action pages
	 */
	public static final String ACTION_PAGES_COLLECTION_KEY = "com.blandware.atleap.ACTION_PAGES_COLLECTION";

	/**
	 * Collection of application resources
	 */
	public static final String APPLICATION_RESOURCES_COLLECTION_KEY = "com.blandware.atleap.APPLICATION_RESOURCES_COLLECTION";

	/**
	 * Collection of action page URLs without locale suffix
	 */
	public static final String ACTION_PAGE_URLS_COLLECTION_KEY = "com.blandware.atleap.ACTION_PAGE_URLS_COLLECTION";

	/**
	 * Collection of content page URLs without locale suffix
	 */
	public static final String CONTENT_PAGE_URLS_COLLECTION_KEY = "com.blandware.atleap.CONTENT_PAGE_URLS_COLLECTION";

	/**
	 * Collection of content resources
	 */
	public static final String CONTENT_RESOURCES_COLLECTION_KEY = "com.blandware.atleap.CONTENT_RESOURCES_COLLECTION";

	/**
	 * Collection of page folders
	 */
	public static final String FOLDERS_COLLECTION_KEY = "com.blandware.atleap.PAGE_FOLDERS_COLLECTION";

	/**
	 * Collection of images for browsing
	 */
	public static final String BROWSER_IMAGES_COLLECTION_KEY = "com.blandware.atleap.browser.IMAGES_COLLECTION";

	/**
	 * Collection of documents for browsing
	 */
	public static final String BROWSER_DOCUMENTS_COLLECTION_KEY = "com.blandware.atleap.browser.DOCUMENTS_COLLECTION";

	/**
	 * Collection of files for browsing
	 */
	public static final String BROWSER_FILES_COLLECTION_KEY = "com.blandware.atleap.browser.FILES_COLLECTION";

	/**
	 * Collection of linkable items for browsing
	 */
	public static final String BROWSER_LINKABLE_ITEMS_COLLECTION_KEY = "com.blandware.atleap.browser.LINKABLE_ITEMS_COLLECTION";

	/**
	 * Collection of content resource types
	 */
	public static final String RESOURCE_TYPES_COLLECTION_KEY = "com.blandware.atleap.CONTENT_RESOURCE_TYPES_COLLECTION";

	/**
	 * Collection of field identifiers
	 */
	public static final String CONTENT_FIELD_IDENTIFIERS_COLLECTION_KEY = "com.blandware.atleap.CONTENT_FIELD_IDENTIFIERS_COLLECTION";

	/**
	 * Collection of sequence identifiers
	 */
	public static final String SEQUENCE_IDENTIFIERS_COLLECTION_KEY = "com.blandware.atleap.SEQUENCE_IDENTIFIERS_COLLECTION";

    /**
	 * Context key under which available variables of mail template is stored
	 */
	public static final String MAIL_TEMPLATE_AVAIALABLE_VARIABLES_KEY = "com.blandware.atleap.MAIL_TEMPLATE_AVAIALABLE_VARIABLES";

	/**
	 * Collection of search result hits
	 */
	public static final String SEARCH_HITS_COLLECTION_KEY = "com.blandware.atleap.SEARCH_HITS_COLLECTION";

	/**
	 * Collection of linked content field values
	 */
	public static final String LINKED_CONTENT_FIELD_VALUES_COLLECTION_KEY = "com.blandware.atleap.LINKED_CONTENT_FIELD_VALUES_COLLECTION";

	/**
	 * Collection of linked content field values
	 */
	public static final String LINKED_CONTENT_FIELD_VALUES_AND_MENU_ITEMS_INFOS_COLLECTION_KEY = "com.blandware.atleap.LINKED_CONTENT_FIELD_VALUES_AND_MENU_ITEMS_INFOS_COLLECTION";

    /**
	 * Collection of content field values
	 */
	public static final String CONTENT_FIELD_VALUES_COLLECTION_KEY = "com.blandware.atleap.CONTENT_FIELD_VALUES_COLLECTION";

	/**
	 * Collection of linked menu items
	 */
	public static final String LINKED_MENU_ITEMS_COLLECTION_KEY = "com.blandware.atleap.LINKED_MENU_ITEMS_COLLECTION";

    /**
	 * Stored previous search query
	 */
	public static final String SEARCH_QUERY_KEY = "com.blandware.atleap.SEARCH_QUERY";

	/**
	 * Value to mark URl must be domain relative
	 */
	public static final int URL_TYPE_DOMAIN_RELATIVE = 0;
	/**
	 * Value to mark URl must be context relative
	 */
	public static final int URL_TYPE_CONTEXT_RELATIVE = 1;
	/**
	 * Value to mark URL must be module relative
	 */
	public static final int URL_TYPE_MODULE_RELATIVE = 2;

	/**
	 * Context key under which action errors are saved
	 */
	public static final String ERROR_KEY = "com.blandware.atleap.ACTION_ERRORS";

	/**
	 * Context key under which action messages are saved
	 */
	public static final String MESSAGE_KEY = "com.blandware.atleap.ACTION_MESSAGES";

	/**
	 * Prefix for all content pages URIs
	 */
	public static final String CONTENT_PAGES_URI_PREFIX = "/pages";

    /**
	 * Name of global property that holds max summary size of document
	 */
	public static final String DOCUMENT_SUMMARY_SIZE_KEY = "document.summary.size";

	/**
	 * Name of global property that holds number of elements displayed on each page of grid
	 */
	public static final String GRID_PAGE_SIZE = "grid.page.size";

	/**
	 * Context key under which list of values provided with checked boxes is saved
	 */
	public static final String CONTENT_FIELD_VALUE_SELECTED_LOCALES_KEY = "com.blandware.atleap.CONTENT_FIELD_VALUE_SELECTED_IDS";

	/**
	 * Flag to signal that some action has already been submitted (to prevent double click, instead of transactions)
	 */
	public static final String CONTENT_FIELD_VALUE_SUBMITTED_ACTION_KEY = "com.blandware.atleap.CONTENT_FIELD_VALUE_SUBMITTED_ACTION_KEY";

	/**
	 * Flag to signal that some action has already been submitted (to prevent double click, instead of transactions)
	 */
	public static final String MAIL_TEMPLATE_SUBMITTED_ACTION_KEY = "com.blandware.atleap.MAIL_TEMPALTE_SUBMITTED_ACTION_KEY";

	/**
	 * Context key, under which number of locales available in system is saved
	 */
	public static final String AVAILABLE_LOCALES_LIST_SIZE_KEY = "com.blandware.atleap.AVAILABLE_LOCALES_LIST_SIZE";

    /**
     * The global property to identify the time (in seconds) to max age of content page response for browser cache
     */
    public static final String CACHE_CONTENTPAGE_MAXAGE_PROPERTY = "cache.contentPage.maxAge";

    /**
     * The global property to identify the time (in seconds) to max age of resource response for browser cache
     */
    public static final String CACHE_RESOURCE_MAXAGE_PROPERTY = "cache.resource.maxAge";

    /**
     * Path where default context menu JSP is stored
     */
    public static final String DEFAULT_CONTEXT_MENU_JSP = "/WEB-INF/pages/core/contextMenu.jsp";

	/**
	 * Name of global property, storing value of WYSIWYG editor's type
	 */
	public static final String GLOBAL_PROPERTY_WYSIWYG_EDITOR_TYPE = "wysiwyg.editor.type";

    /**
     * Name of global property, storing value for editorAreaCss which is used if
     * no such info supplied
     */
    public static final String GLOBAL_PROPERTY_DEFAULT_CONTENT_EDITOR_CSS = "content.editor.defaultEditorAreaCss";

    /**
     * Name of global property which stores value for default external resource
     * cache time
     */
    public static final String GLOBAL_PROPERTY_EXTERNAL_RESOURCE_CACHE_TIME = "externalResourceCache.cacheTime";

    /**
     * Name of global property which stores number of entries in a
     * syndication feed
     */
    public static final String GLOBAL_PROPERTY_SYNDICATION_FEED_SIZE = "syndication.feed.size";

    /**
     * Name of global property which stores admin console CSS theme name
     */
    public static final String GLOBAL_PROPERTY_ADMIN_CSS_THEME = "admin.css.theme";

    /**
     * Name of global property which stores front-end theme name
     */
    public static final String GLOBAL_PROPERTY_FRONTEND_CSS_THEME = "frontend.css.theme";

    /**
     * Name of global property which stores value for 'external' context path
     */
    public static final String GLOBAL_PROPERTY_EXTERNAL_CONTEXT_PATH = "external.contextPath";

    /**
     * Name of global property which stores value for 'external' host
     */
    public static final String GLOBAL_PROPERTY_EXTERNAL_HOST = "external.host";

    /**
     * Name of global property which stores value for 'external' HTTP port
     */
    public static final String GLOBAL_PROPERTY_EXTERNAL_HTTP_PORT = "external.httpPort";

    /**
     * Name of global property which stores value for 'external' HTTPS port
     */
    public static final String GLOBAL_PROPERTY_EXTERNAL_HTTPS_PORT = "external.httpsPort";

    /**
     * Context key under which list of items provided with checked boxes is saved
     */
    public static final String MENU_ITEM_SELECTED_IDS_KEY = "com.blandware.atleap.MENU_ITEM_SELECTED_IDS";

    /**
     * Context key under which visibility mode (visible/invisible/heritable) for
     * selected menu items is saved
     */
    public static final String MENU_ITEM_VISIBILITY_MODE_FOR_SELECTED_KEY = "com.blandware.atleap.MENU_ITEM_VISIBILITY_MODE_FOR_SELECTED";

    /**
     * Context key under which owner ID for selected menu items is saved
     */
    public static final String MENU_ITEM_OWNER_ID_FOR_SELECTED_KEY = "com.blandware.atleap.MENU_ITEM_OWNER_ID_MODE_FOR_SELECTED";

    /**
     * Context key under which positions for menu items are saved 
     */
    public static final String MENU_ITEM_POSITIONS_KEY = "com.blandware.atleap.MENU_ITEM_POSITIONS";

	/**
	 * Context key under which set of context menus is stored
	 */
	public static final String CONTEXT_MENUS_KEY = "com.blandware.atleap.CONTEXT_MENUS";

    /**
	 * Context key under which encoding used to determined document encoding is
     * stored
	 */
    public static final String CONTENT_DOCUMENT_ENCODING_KEY = "com.blandware.atleap.CONTENT_DOCUMENT_ENCODING";

    /**
     * Context key under which content page form bean is stored
     */
    public static final String CONTENT_PAGE_FORM_KEY = "com.blandware.atleap.CONTENT_PAGE_FORM";

    /**
     * Context key under which action page form bean is stored
     */
    public static final String ACTION_PAGE_FORM_KEY = "com.blandware.atleap.ACTION_PAGE_FORM";

    /**
     * Context key under which content resource form bean is stored
     */
    public static final String CONTENT_RESOURCE_FORM_KEY = "com.blandware.atleap.CONTENT_RESOURCE_FORM";

    /**
     * Context key under which virtual folder form bean is stored
     */
    public static final String VIRTUAL_FOLDER_FORM_KEY = "com.blandware.atleap.VIRTUAL_FOLDER_FORM";

    /**
     * Context key under which redirect url for linked objects page is stored
     */
    public static final String LINKED_OBJECTS_REDIRECT_URL_KEY = "com.blandware.atleap.LINKED_OBJECTS_BACK_ACTION";

    /**
     * Context key under which container with info for view linked objects page
     * is stored
     */
    public static final String LINKED_OBJECTS_INFO_CONTAINER_KEY = "com.blandware.atleap.LINKED_OBJECTS_INFO_CONTAINER";

    /**
     * Default style classes for context menu items: regular item, highlighted
     * item, disabled item and highlighted disabled item
     */
    public static final String CONTEXT_MENU_ITEM_STYLE_CLASS = "contextMenuItem";
    public static final String HIGHLIGHTED_CONTEXT_MENU_ITEM_STYLE_CLASS = "highlightedContextMenuItem";
    public static final String DISABLED_CONTEXT_MENU_ITEM_STYLE_CLASS = "disabledContextMenuItem";
    public static final String HIGHLIGHTED_DISABLED_CONTEXT_MENU_ITEM_STYLE_CLASS = "highlightedDisabledContextMenuItem";

    /**
     * Context key under which an object will be stored which will allow to
     * determine if 'back' button was pressed.
     */
    public static final String BACK_KEY = "com.blandware.atleap.action.BACK";

    /**
     * Context key under which current form bean will be stored.
     */
    public static final String FORM_KEY = "com.blandware.atleap.action.FORM";

    /**
     * Context key under which a flag is stored which indicates whether a
     * checkbox which checks all checkboxes needs to be ckecked
     */
    public static final String SELECT_ALL_LOCALES_CHECKBOX_IS_CHECKED = "com.blandware.atleap.contentLocale.SELECT_ALL_LOCALES_CHECKBOX_IS_CHECKED";

    /**
     * Context key under which list of special object URI prefixes is stored
     */
    public static final String SPECIAL_OBJECT_URI_PREFIXES_KEY = "com.blandware.atleap.SPECIAL_OBJECT_URI_PREFIXES";

    /**
     * Context key under which title of displayed object (like news item) is
     * stored
     */
    public static final String DISPLAYED_OBJECT_TITLE_KEY = "com.blandware.atleap.DISPLAYED_OBJECT_TITLE";

    /**
     * Context key under which URI of displayed object (like news item) is
     * stored
     */
    public static final String DISPLAYED_OBJECT_URI_KEY = "com.blandware.atleap.DISPLAYED_OBJECT_URI";

    /**
     * Name of request parameter which contains canonical URI (before URL was
     * rewritten)
     */
    public static final String CANONICAL_URI_KEY = "com.blandware.atleap.CANONICAL_URI";

    /**
     * Context key under which target URL is saved in session to ease its
     * transition.
     */
    public static final String AUTH_TARGET_URL_KEY = "com.blandware.atleap.AUTH_TARGET_URL";

    /**
     * List which contains standard targets for link
     */
    public static final String[] LINK_TARGETS = new String[]{"_blank", "_self",
                                                             "_parent", "_top"};

    /**
     * Prefix of key for targets
     */
    public static final String TARGET_IDENTIFIER_KEY_PREFIX = "core.menuItem.form.target.";

    /**
     * Context key under which flag that indicates that locale is stored in
     * session under certain key (currently Globals.LOCALE_KEY), presents in
     * system and active
     */
    public static final String LOCALE_WAS_CHECKED_KEY = "com.blandware.atleap.LOCALE_WAS_CHECKED";

    /**
     * Name of parameter which presence indicates that user is logging into
     * system
     */
    public static final String LOGGING_IN = "com.blandware.atleap.LOGGING_IN";

    /**
     * =========================== S T A T I S T I C S =========================
     */

    /**
     * Context key under which RawDataCollector instance is stored
     */
    public static final String RAW_DATA_HOLDER_KEY = "com.blandware.atleap.RAW_DATA_HOLDER";

    /**
     * Name of header containing info about user agent
     */
    public static final String USER_AGENT_HEADER = "User-Agent";

    /**
     * Name of header containing info about referrer
     */
    public static final String REFERRER_HEADER = "Referer";

    /**
     * Name of request parameter which contains referrer URL
     */
    public static final String REFERRER_PARAM = "r";

    /**
     * Name of request parameter which contains user screen info
     */
    public static final String SCREEN_INFO_PARAM = "s";

    /**
     * Name of request parameter which contains URL
     */
    public static final String URL_PARAM = "l";

    /**
     * Name of cookie used to identify unique visitor
     */
    public static final String STATISTICS_COOKIE = "statisticsCookie";

    /**
     * Name of static global property which is true if statistics collection
     * is enabled
     */
    public static final String STATISTICS_ENABLED_KEY = "statistics.enabled";

    /**
     * =========================== S Y N D I C A T I O N =======================
     */

    /**
     * Content type to use when outputting syndication feed
     */
    public static final String FEED_CONTENT_TYPE = "application/xml; charset=UTF-8";
}
